<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div></div>
    <script>
        function  fun1(){
            let arr = [
                {
                    name:1221,
                    age:23,
                    gender:'12'
                },
                {
                    name:2323,
                    age:34,
                    gender:'34'
                },
            ]
            return arr
        }
        
        function fun2(){
          let num =  fun1();
          for(var  i = 0; i< num.length; i++){
                console.log(num[i])
          }
        //   console.log(num)
        }
        fun2()
    </script>
</body>
</html>